//
//  NSObject+Convenience.h
//  PCCategoriesDemo
//
//  Created by 宋鹏程 on 14-4-8.
//  Copyright (c) 2014年 宋鹏程. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSObject (Convenience)
- (BOOL)isNull;
@end


@interface NSObject (Model)

+ (instancetype)modelWithDictionary:(NSDictionary *)dict;
- (instancetype)initWithDictionary:(NSDictionary *)dict;

+ (instancetype)modelWithDictionaryArray:(NSArray *)dictArray;
- (instancetype)initWithDictionaryArray:(NSArray *)dictArray;

+ (instancetype)modelWithAttributes:(NSDictionary *)dict;
- (instancetype)initWithAttributes:(NSDictionary *)dict;

+ (instancetype)modelWithAttributesArray:(NSArray *)dictArray;
- (instancetype)initWithAttributesArray:(NSArray *)dictArray;

@end
